<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.2"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:s="http://www.springframework.org/tags">
<jsp:directive.attribute name="active" required="true" />
<jsp:directive.attribute name="value" required="true" />
<jsp:directive.attribute name="url" required="true" />
<jsp:directive.attribute name="dropdown" required="true" />
<jsp:doBody var="body" />
<c:url value="/" var="rootURL" />
<c:choose>
	<c:when test="${active == value}">
		<c:choose>
			<c:when test="${dropdown == true}">
				<li class="dropdown active">
					<a class="dropdown-toggle" data-toggle="dropdown" href="${rootURL}${url}"><s:message code="navbar.${value}" /> <b class="caret"><!-- --></b></a>
					<ul class="dropdown-menu">
						${body}
					</ul>
				</li>
			</c:when>
			<c:otherwise>
				<li class="active"><a href="${rootURL}${url}"><s:message code="navbar.${value}" /></a></li>
			</c:otherwise>
		</c:choose>
	</c:when>
	<c:otherwise>
		<c:choose>
			<c:when test="${dropdown == true}">
				<li class="dropdown">
					<a class="dropdown-toggle" data-toggle="dropdown" href="${rootURL}${url}"><s:message code="navbar.${value}" /> <b class="caret"><!-- --></b></a>
					<ul class="dropdown-menu">
						${body}
					</ul>
				</li>
			</c:when>
			<c:otherwise>
				<li><a href="${rootURL}${url}"><s:message code="navbar.${value}" /></a></li>
			</c:otherwise>
		</c:choose>
	</c:otherwise>
</c:choose>
</jsp:root>